package com.pinla.util;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@SuppressWarnings("unchecked")
public class UtilSingleton {
	public static UtilSingleton instance = null;
	//ip库数据文件名称
	public static String ipFileName="qqwry.dat";
	//ip库文件存放路径
	public static String  ipDataBasePath = "";
	
	public static Map map=new HashMap();;
	
	public static List list = new ArrayList();
	
	public static Map getMap() {
		return map;
	}

	public static void setMap(Map map) {
		UtilSingleton.map = map;
	}

	public static List getList() {
		return list;
	}

	public static void setList(List list) {
		UtilSingleton.list = list;
	}

	public static String getIpDataBasePath() {
		return ipDataBasePath;
	}

	public static void setIpDataBasePath(String ipDataBasePath) {
		UtilSingleton.ipDataBasePath = ipDataBasePath;
	}

	public static synchronized UtilSingleton getInstance() {
		if (instance == null) {
			instance = new UtilSingleton();
		}
		return instance;
	}


}
